package com.tbm.console.proj.view;

import com.tbm.console.proj.entity.LocalUserInfoEntity;
import com.tbm.console.proj.entity.SystemUser;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;

@Data
public class SystemUserLocalUserInfoView {

    @Autowired
    private SystemUser systemUser;

    @Autowired
    private LocalUserInfoEntity localUserInfoEntity;

    public SystemUserLocalUserInfoView(){

    }

    public SystemUserLocalUserInfoView(SystemUser systemUser){
        this.systemUser = systemUser;
        this.localUserInfoEntity = new LocalUserInfoEntity();
    }

    public SystemUserLocalUserInfoView(LocalUserInfoEntity localUserInfoEntity) {
        this.systemUser = new SystemUser();
        this.localUserInfoEntity = localUserInfoEntity;
    }

    public SystemUserLocalUserInfoView(SystemUser systemUser,LocalUserInfoEntity localUserInfoEntity){
        this.systemUser = systemUser;
        this.localUserInfoEntity = localUserInfoEntity;
    }
}
